#include "stm32f4xx.h"
#include <stdio.h>
#include <string.h>

#define MAXSIZE 7
typedef struct{
    char data[MAXSIZE];
    int front;
    int rear;
}queue;

typedef struct{
    u8 step1;
    u8 step2;
    u8 type;
    queue queue1;
    u8 sum;
    u8 stepEnd;
}frameMsg;

void InitQueue(queue *queue1);

int IsEmpty(queue queue1);
int IsFull(queue queue1);
int EnQueue(queue *queue1,u8 x);
int DeQueue(queue *queue1,u8 *x);
